﻿using Core.Framework.Distributed;
using Core.Framework.Distributed.Model;
using Core.Framework.Model.Common;
using Core.Framework.Util;
using Microsoft.AspNetCore.Builder;
using System;
using System.Net.WebSockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace Core.Framework.Distributed
{
    public static class DistributedMidWare
    {
        /// <summary>
        /// 启用 Itool分布式组件
        /// </summary>
        /// <param name="applicationBuilder"></param>
        /// <returns></returns>
        public static IApplicationBuilder UseDistributedMidWare(this IApplicationBuilder applicationBuilder)
        {
            CoreDistributed.CreateInstance();
            return applicationBuilder;
        }
    }
}
